Getting Started with CookieBanner Extension
Introduction
The CookieBanner extension adds a customizable cookie consent banner to your website. It supports markdown for the banner message, configurable colors, opacity, and styled buttons for accepting or declining cookies.
Installation
Prerequisites
- A working Paymenter instance.
Steps
Download the Extension:- Download the
CookieBanner.zipfile from the provided source.
- Log in to your Paymenter admin dashboard.
- Navigate to Extensions > Upload Extension.
- Upload the
CookieBanner.zipfile. - Install the extension inside the same tab.
- After uploading, go to Extensions > Installed Extensions.
- Find CookieBanner and click Enable.
Usage
How It Works
- The cookie banner appears at the bottom of the page for visitors who haven’t made a cookie consent choice.
- Users can Accept or Decline cookies (if the Decline button is enabled).
- The user’s choice is stored in a cookie named
cookieConsent.
Customizing the Appearance
- Use the configuration options to adjust colors, opacity, and text.
- The banner message supports markdown, so you can include links, bold text, and more.
Testing the Banner
Previewing the Banner
- Clear your browser cookies for the site.
- Refresh the page. The cookie banner should appear.
- Test both the Accept and Decline buttons.
Debugging
If the banner doesn’t appear: Ensure the extension is enabled. Check if thecookieConsent cookie is already set.
Verify there are no JavaScript errors in the browser console.